import { ref,onMounted } from 'vue'
import { getBannerList } from "@/apis/home";


  //处理banner数据
export function useBanner(){
const bannerList = ref([])
const BannerList = async () => {
  const res = await getBannerList(
    {
      distributionSite: '2'
    }
  )
  bannerList.value = res.data.result
}
onMounted(() => BannerList())
return {
  bannerList
}
}

